﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
@model dynamic
@using Resources;
@{   
    Layout = "~/Views/Shared/Layaout/general/_LayoutPopGeneral.cshtml";
    int i = 0;    
}
<script type="text/javascript" language="javascript" src="@Url.Content(@properties.menuManteJS)" ></script>
<br/>
<table width="100%" border="0" cellpadding="0" cellspacing="0">      
     <tr>
         <td>
             <table style="width:100%;" border="1" cellpadding="0" cellspacing="0"  class="tablaDetalle">
                <tr class="tituloDetalleBlue_1" align="center">
                    <td style="width:15px;">#</td>                                    
                    <td align="left" >Nombre</td>
                    <td style="width:30px;">Id</td>
                     <td style="width:100px;">Perfil</td>
                     <td style="width:90px;">Usuario</td>                                                   
                    <td style="width:90px;">Fec Ini Vig</td>
                    <td style="width:90px;">Fec Fin Vig</td>                                                           
                </tr>
            
                @foreach(var item in  Model) {
                    i++;
                    <tr class="@(i%2 != 0 ? "odd" : "even")" align="center" id="trDet1@(i)" >
                        <td>@i</td>
                        <td align="left">@item.descOpcion</td>
                        <td>@item.nIdeOpcion</td>
                        <td>@item.perfil</td>
                        <td>@item.usuario</td>                        
                        <td>@String.Format("{0:dd/MM/yyyy}",item.dFecIniVig)</td>                        
                        <td>
                            @if (@item.dFecFinVig.ToString().Length <= 0)
                            {               
                              <span><span class="letraLink8" onclick="javascript:cerrarVigenciaOpcionPerfil(this,'@item.nIdeOpcionPerfil');">Cerrar Vigencia</span></span>
                            }else{
                                @String.Format("{0:dd/MM/yyyy}", item.dFecFinVig);
                            }
                        </td>
                     </tr> 
                }
                </table>  
                   
         </td>
      </tr>
</table>
   